package edu.zut.hb.software.waypath.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import edu.zut.hb.software.base.domain.BaseTreeEntity;
import lombok.Data;

@Table(name = "lineNetwork")
@Entity
@Data
@NamedQueries({ @NamedQuery(name = "LineNetwork.getRoot", query = "select g from LineNetwork g where g.parent is null")})
public class LineNetwork extends BaseTreeEntity<LineNetwork, Long> {

    private static final long serialVersionUID = -4376674977047164142L;

    @Column(name = "name")
    private String name;

    @Column(name = "address")
    private String address;

    @Column(name = "phone")
    private String phone;
    
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

}
